import service from '@/utils/request'
// @Tags VideoDateWork
// @Summary 创建videoDateWork表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.VideoDateWork true "创建videoDateWork表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /videoDateWork/createVideoDateWork [post]
export const createVideoDateWork = (data) => {
  return service({
    url: '/videoDateWork/createVideoDateWork',
    method: 'post',
    data
  })
}

// @Tags VideoDateWork
// @Summary 删除videoDateWork表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.VideoDateWork true "删除videoDateWork表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /videoDateWork/deleteVideoDateWork [delete]
export const deleteVideoDateWork = (params) => {
  return service({
    url: '/videoDateWork/deleteVideoDateWork',
    method: 'delete',
    params
  })
}

// @Tags VideoDateWork
// @Summary 批量删除videoDateWork表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除videoDateWork表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /videoDateWork/deleteVideoDateWork [delete]
export const deleteVideoDateWorkByIds = (params) => {
  return service({
    url: '/videoDateWork/deleteVideoDateWorkByIds',
    method: 'delete',
    params
  })
}

// @Tags VideoDateWork
// @Summary 更新videoDateWork表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.VideoDateWork true "更新videoDateWork表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /videoDateWork/updateVideoDateWork [put]
export const updateVideoDateWork = (data) => {
  return service({
    url: '/videoDateWork/updateVideoDateWork',
    method: 'put',
    data
  })
}

// @Tags VideoDateWork
// @Summary 用id查询videoDateWork表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.VideoDateWork true "用id查询videoDateWork表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /videoDateWork/findVideoDateWork [get]
export const findVideoDateWork = (params) => {
  return service({
    url: '/videoDateWork/findVideoDateWork',
    method: 'get',
    params
  })
}

// @Tags VideoDateWork
// @Summary 分页获取videoDateWork表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取videoDateWork表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /videoDateWork/getVideoDateWorkList [get]
export const getVideoDateWorkList = (params) => {
  return service({
    url: '/videoDateWork/getVideoDateWorkList',
    method: 'get',
    params
  })
}

// @Tags VideoDateWork
// @Summary 不需要鉴权的videoDateWork表接口
// @Accept application/json
// @Produce application/json
// @Param data query exampleReq.VideoDateWorkSearch true "分页获取videoDateWork表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /videoDateWork/getVideoDateWorkPublic [get]
export const getVideoDateWorkPublic = () => {
  return service({
    url: '/videoDateWork/getVideoDateWorkPublic',
    method: 'get',
  })
}
